﻿using System.Web.UI;
using System.Web.UI.WebControls;
using Cms.Web.Framework.Infrastructure;

namespace Cms.Web.Framework.Controls
{
    public class DetailTemplatePlaceHolder : ContentPlaceHolder
    {
        protected override void Render(HtmlTextWriter writer)
        {
            if (!RequestDetails.Current.IsSystemPageRequest())
            {
                base.Render(writer);
                return;
            }
            writer.WriteBeginTag("div");
            writer.WriteAttribute("class", "cmsDetailTemplatePlaceHolder");
            writer.Write(">");
            base.Render(writer);
            writer.WriteEndTag("div");
        }
    }
}